package com.edu.his.service.impl;

import com.edu.his.domain.Prescription;
import com.edu.his.mapper.PrescriptionMapper;
import com.edu.his.service.PrescriptionService;
import com.edu.his.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述：
 * 创建人：飘
 * 创建时间：2024/12/16
 **/
@Service
public class PrescriptionServiceImpl implements PrescriptionService{

    @Autowired
    private PrescriptionMapper prescriptionMapper;

    @Override
    public R insert(List<Prescription> list) {
        return R.success(200,"处方开立成功",this.prescriptionMapper.insert(list));
    }
}
